#!/usr/bin/python

import radio_config
from radio_base import get_cmd
import sys

"""


"""
def main():
    crons = []
    for broadcast in radio_config.broadcasts:
        crons.append(get_cmd("%(minute)s %(hour)s * * %(weekday_index)s " \
                       "%(ripcmd)s %(duration)s %(dir_)s/%(weekday)s/" \
                       "%(broadcastname)s.ogg %(url)s\n", broadcast,
                       radio_config.__dict__))
    return "".join(crons)

if __name__ == "__main__":
    sys.stdout.write(main())
